package com.freight.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "mobile_track")
@TableName("mobile_track")
@ApiModel(value = "手机行车路径")
public class MobileTrack  extends FreightBaseEntity {

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "司机id")
    private Long driverUserId;

    @ApiModelProperty(value = "车辆id")
    private Long vehicleLicenseId;

    @ApiModelProperty(value = "订单状态 1已接单 2已装货 3运输中 4已卸货 ")
    private Integer orderState;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "经度")
    private String lon;

    @ApiModelProperty(value = "手机型号")
    private String mobileModel;

}
